From: Carlos Garnacho Date: Thu, 29 Sep 2022 12:23:31 +0000 (+0200) Subject: overview: Port to Meta.Display.is_grabbed() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~143 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=238a17c6b5fd98ee581074eaf2f24022c338ed2e;p=gnome-shell.git overview: Port to Meta.Display.is_grabbed() The get_grab_op() method is disappearing, replaced by this new method. Part-of: --- diff --git a/js/ui/overview.js b/js/ui/overview.js index dc6ca5780..34343a019 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -458,8 +458,7 @@ var Overview = class extends Signals.EventEmitter { if (this._shown) { let shouldBeModal = !this._inXdndDrag; if (shouldBeModal && !this._modal) { - if (global.display.get_grab_op() !== Meta.GrabOp.NONE && - global.display.get_grab_op() !== Meta.GrabOp.WAYLAND_POPUP) { + if (global.display.is_grabbed()) { this.hide(); return false; }